home *** CD-ROM | disk | FTP | other *** search
- ps.1.1
-
- def c0, 1.0, 1.0, 1.0, 1.0
- def c1, 0.4999, 0.4999, 0.4999, 0.4999
- def c2, 1.0, 1.0, 1.0, 1.0
-
- tex t0 ;Backgroundtexture
- tex t1 ;Scene without bd texture
-
-
-
-
- dp3 r0, c0, t1 ;r1 is zero if color in scene texture is black
- add r0.a, r0, c1 ;add 0.49 so we can use the cnd function
- cnd r0, r0.a, t1, t0 ;if color in scene texture set black otherwise use background texture
-
- ;mov r0.a, c2.w
- ;mov r0.a, t1.a ;set alpha to 1, don't know if this is required
-
-
-